/* =============================================================
   content.css  —  Our World Rewritten  |  All content pages
   (Soup Kitchen, Craft Room, Museum, Post Office, About Me …)
   Link AFTER base.css:
     <link rel="stylesheet" href="base.css">
     <link rel="stylesheet" href="content.css">
   ============================================================= */
 
 
/* ── TWO-COLUMN PAGE LAYOUT ───────────────────────────────── */
/*
   col 1 — fixed nav (353px, managed by base.css)
   col 2 — scrollable main content
*/
 
.content-layout {
  display: -webkit-flex;
  display: flex;
  min-height: 100vh;
}
 
.content-nav-spacer {
  width: 353px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
 
.page-main {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  background-color: #f2e8b1;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow-y: auto;
  min-height: 100vh;
}
 
 
/* ── HEADER IMAGE ─────────────────────────────────────────── */
/*
   Canva mock-up ratio: 1444 × 363 px (roughly 4:1).
   aspect-ratio maintains proportion; max-height caps tall screens.
*/
 
.page-header-img {
  width: 100%;
  aspect-ratio: 1444 / 363;
  max-height: 363px;
  overflow: hidden;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  border-bottom: 3px solid #644619;
}
 
.page-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
 
 
/* ── INNER CONTENT WRAPPER ────────────────────────────────── */
 
.page-inner {
  padding: 32px 40px 56px 40px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 36px;
  max-width: 1200px;
  width: 100%;
}
 
 
/* ── PAGE TITLE (h1) ──────────────────────────────────────── */
 
.page-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 3rem;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
 
 
/* ── INTRO / DESCRIPTION BOX ──────────────────────────────── */
 
.intro-box {
  background-color: #e8d98a;
  border: 2px solid #644619;
  border-radius: 6px;
  padding: 24px 32px 24px 32px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  text-align: center;
}
 
.intro-box .intro-eyebrow {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #644619;
  margin-bottom: 10px;
}
 
.intro-box p {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #000000;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
 
 
/* ── SECTION HEADING (h2) ─────────────────────────────────── */
 
.section-heading {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  padding-bottom: 10px;
  border-bottom: 2px solid #644619;
}
 
 
/* ── POST GRID ────────────────────────────────────────────── */
/*
   Default: 3 columns.
   To use 2 columns on a specific page, add a wrapper class and
   override the grid-template-columns there.
*/
 
.post-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
}
 
.post-card {
  -webkit-flex: 0 0 calc(33.333% - 16px);
  flex: 0 0 calc(33.333% - 16px);
  background-color: #e8d98a;
  border: 2px solid #644619;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  text-decoration: none;
  color: #000000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
 
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
 
 
/* ── POST THUMBNAIL ───────────────────────────────────────── */
 
.post-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #b0aeb8;
  overflow: hidden;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
 
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
 
.post-card:hover .post-thumb img {
  transform: scale(1.04);
}
 
.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  background-color: #b8b6c0;
  color: #666666;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  gap: 8px;
}
 
 
/* ── POST INFO ────────────────────────────────────────────── */
 
.post-info {
  padding: 12px 14px 16px 14px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}
 
.post-info .post-title {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #000000;
  line-height: 1.3;
}
 
.post-info .post-date {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  color: #644619;
}
 
.post-info .post-excerpt {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 0.88rem;
  color: #000000;
  line-height: 1.55;
  margin-top: 4px;
  opacity: 0.8;
}
 
.post-tag {
  display: inline-block;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #644619;
  border-radius: 4px;
  padding: 2px 8px 2px 8px;
  margin-top: auto;
  -webkit-align-self: flex-start;
  align-self: flex-start;
}
 
 
/* ── RESPONSIVE: TABLET (≤ 900px) ────────────────────────── */
 
@media (max-width: 900px) {
 
  .content-layout {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
 
  .content-nav-spacer {
    display: none;
  }
 
  .page-inner {
    padding: 72px 20px 48px 20px;
    gap: 28px;
  }
 
  /* 2-column grid on tablet */
  .post-card {
    -webkit-flex: 0 0 calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
  }
 
  .page-header-img {
    max-height: 240px;
  }
}
 
 
/* ── RESPONSIVE: MOBILE (≤ 480px) ────────────────────────── */
 
@media (max-width: 480px) {
 
  .page-inner {
    padding: 64px 14px 40px 14px;
    gap: 22px;
  }
 
  /* 1-column grid on mobile */
  .post-card {
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
  }
 
  .page-header-img {
    max-height: 160px;
  }
 
  .intro-box {
    padding: 18px 16px 18px 16px;
  }
 
  .page-title {
    font-size: 2rem;
  }
}